package com.hdsx.netty.tomcatserver.netty;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.HttpRequest;

/**
 * @author 占贤银
 * time 2024/8/5 23:33
 * description 生命之灯因热情而点燃，生命之舟因拼搏而前行
 */
public class XYRequest {

    private ChannelHandlerContext ctx;
    private HttpRequest req;

    public String getUrl() {
        return req.uri();
    }

    public String getMethod() {
        return req.method().name();
    }

    public XYRequest(ChannelHandlerContext ctx, HttpRequest req) {
        this.ctx = ctx;
        this.req = req;
    }
}
